package com.goodsogood.union.auth.web.validator;

import com.dongguochao.validation.Validator;
import com.dongguochao.validation.constraints.impl.NotBlankValidator;

/**
 * Created by dongguochao on 17/11/2016.
 */
public class AppIdCardLoginValidator extends Validator {
    @Override
    public void setup() {
        // 手机号验证
        add(new NotBlankValidator("userIdCard", "1", "请填入身份证号"));
//        add(new IdCardValidator("userIdCard", "1", "请填入正确的身份证"));
        add(new NotBlankValidator("pwd", "1", "请输入密码"));
        add(new NotBlankValidator("plateformDeviceType", "1", "参数不完整：1"));
    }
}
